﻿using Financial.Data;
using Financial.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Financial.Business
{
    public static class ExpenseBL
    {
        public static List<Expense> GetExpenses()
        {
            ExpenseDL expenseDL = new ExpenseDL();
            return expenseDL.GetExpenses();
        }

        public static List<Expense> GetExpenses(int? parentId)
        {
            ExpenseDL expenseDL = new ExpenseDL();
            return expenseDL.GetExpenses(parentId);
        }

        public static void CreateSaveToDatabase(Expense expense)
        {
            ExpenseDL expenseDL = new ExpenseDL();
            expenseDL.CreateSaveToDatabase(expense);
        }
    }
}
